/*
 * @Date: 2023-07-27 20:33:01
 * @LastEditors: zhangsongwei
 * @LastEditTime: 2023-07-31 02:07:36
 * @FilePath: /z/src/Page.tsx
 * @description:
 */
import React from "react";
import {
  HashRouter as Router,
  Route,
  Switch,
  Redirect,
} from "react-router-dom";
import NotFound from "./components/pages/NotFound";
import Login from "./components/pages/Login";
import App from "./App";

export default () => (
  <Router>
    <Switch>
      <Route exact path="/" render={() => <Redirect to="/app/index" push />} />
      {/* <Route exact path="/" render={() => <Redirect to="/app/dashboard/index" push />} /> */}
      <Route path="/app" component={App} />
      <Route path="/404" component={NotFound} />
      <Route path="/login" component={Login} />
      <Route component={NotFound} />
    </Switch>
  </Router>
);
